Allow architectures to define their own privcmd_mmap() by
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 30 Apr 2006 08:52:13 +0000 (09:52 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sun, 30 Apr 2006 08:52:13 +0000 (09:52 +0100)
introducing HAVE_ARCH_PRIVCMD_MMAP.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c

index a5b9c73813fb3396ee72360140a0506be7d1019c..1c9c21addd56c7a0cdf54752486c1bc6d8b34d05 100644 (file)
@@ -241,6 +241,7 @@ static int privcmd_ioctl(struct inode *inode, struct file *file,
        return ret;
 }
 
+#ifndef HAVE_ARCH_PRIVCMD_MMAP
 static int privcmd_mmap(struct file * file, struct vm_area_struct * vma)
 {
        /* DONTCOPY is essential for Xen as copy_page_range is broken. */
@@ -248,6 +249,7 @@ static int privcmd_mmap(struct file * file, struct vm_area_struct * vma)
 
        return 0;
 }
+#endif
 
 static struct file_operations privcmd_file_ops = {
        .ioctl = privcmd_ioctl,